package only.my.railgunys.weapon;

import only.my.railgunys.bean.Character;
import only.my.railgunys.bean.Weapon;

public class PrimordialJadeWingedSpear extends Weapon {

    public PrimordialJadeWingedSpear(int refineLevel,int times){
        this.atk = 674.0;
        this.subStatValue = 22.1;
        this.refineLevel =refineLevel;
        this.name = "绿枪";
        this.code = 8;
        this.times = times;
    }

    @Override
    public Character subStatEnhance(Character character) {
        character.addCritRate(this.subStatValue);
        return character;
    }

    @Override
    public Character specialAbility(Character character) {
        character.addAtk(times*(3.2+0.7*(refineLevel-1)));
        if (times == 7) {
            character.addIncrease(12*(1 + (refineLevel - 1) * 0.25));
        }
        return character;
    }
}
